package com.kqb.service;

import com.kqb.common.curd.IBaseService;
import com.kqb.common.domain.AjaxResult;
import com.kqb.common.domain.page.PageResult;
import com.kqb.pojo.Customer;
import com.kqb.pojo.dto.CustomerDTO;

import java.util.List;
import java.util.Map;

public interface CustomerService extends IBaseService<Customer> {


    /**
     * 增加客户与用户
     */  // OK
    public Map<String, Object> save(CustomerDTO customerDTO);

    /**
     * 根据id删除用户
     * @param id
     * @return
     */  // OK
    public int delete(int id);

    /**
     * 修改客户
     * @param customerDTO
     * @return
     */ // OK
    public int update(CustomerDTO customerDTO);

    /**
     * 查询客户
     *
     * @param customer
     * @return
     */  //  OK
    PageResult query(Customer customer);


    Map<String,Object> queryById(int id);

    int accountIsExist(String account);

    AjaxResult selectSimple();
}
